#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
    int n, a[100], i, j, k;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
        scanf("%d", &a[i]);
    for (i = 0; i < n - 1; i++)
        for (j = i + 1; j < n; j++)
            if (a[j] == a[i]) a[j] = -1;
    for (i = 0; i < n - 1; i++)
        for (j = i; j < n; j++)
            if (a[j] < a[i]) {
                k = a[j];
                a[j] = a[i];
                a[i] = k;
            }
    for (i = 0; i < n; i++) {
        if (a[i] != -1)
            printf("%d ", a[i]);
    }
    printf("\n");
}
